package com.study.talk.netty.message.response;

import com.study.talk.netty.message.MessageType;
import com.study.talk.netty.message.TalkMessage;

/**
 *  创建群聊响应
 */



public class CreateGroupResponse extends TalkMessage {

    //("创建群的名称")
    private String groupName;

    //("创建群的id")
    private Integer groupId;

    //("是否创建群成功")
    private Boolean success;

    //("创建失败原因")
    private String reason;

    @Override
    public byte getType() {
        return MessageType.CREATE_GROUP_RESPONSE;
    }

    public CreateGroupResponse(String groupName, Integer groupId, Boolean success, String reason) {
        this.groupName = groupName;
        this.groupId = groupId;
        this.success = success;
        this.reason = reason;
    }

    public CreateGroupResponse() {
    }

    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    public Integer getGroupId() {
        return groupId;
    }

    public void setGroupId(Integer groupId) {
        this.groupId = groupId;
    }

    public Boolean getSuccess() {
        return success;
    }

    public void setSuccess(Boolean success) {
        this.success = success;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }
}
